Contents | Index | < Browse | Browse >

LETTERstrlenULETTER Returns a string's length.

Overview
#include <string.h>

length = strlen(s);

size_t length;
const char *s;

Portability
ANSI

Description
Counts a string's length without the terminating zero byte. Escape sequences such as "\n" and "\n" are treated as a single character.

Returns
The string's length without the terminating zero byte.